package com.epfresh.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhaozhenqiang on 2018/4/11.
 */

public class OfferForThree {

    /**
     * content : [{"tags":[],"storeName":"银川小丁鲜菇行","species":"香菇","lastSnapshotId":42703,"modifiedTime":"2018-01-10 09:50:05","origin":"河南","moq":2,"pack":"4公斤/袋","type":1,"packageContainer":"袋","variety":"","packageSize":4,"isDisabled":0,"id":149,"title":"香菇","level":"一级","price":"50.0元/袋","thumbnail":"http://imgtest.epfresh.com/2017%2F1%2F15%2F1484544674032_634043418395004894.png-PRODUCTTHUMBNAIL","marketName":"北环","originalPrice":50,"inventory":1986,"isAcceptOrders":0,"merchantId":8,"incr":1,"packageUnit":"公斤","storeId":1,"chargeUnit":"袋","priceOnly":50}]
     * last : true
     * totalElements : 39
     * thisProduct : {"tags":[],"storeName":"小尤菌菇批发部","species":null,"lastSnapshotId":41898,"modifiedTime":"2017-07-16 02:26:16","origin":"","moq":1,"pack":"8.6斤/箱","type":1,"packageContainer":"箱","variety":"香菇","packageSize":8.6,"isDisabled":0,"id":4787,"title":"香菇","level":"","price":"50.0元/箱","thumbnail":"http://imgtest.epfresh.com/2017%2F5%2F4%2F741702c276f3405e92b9b5777409b0b2.jpg-PRODUCTTHUMBNAIL","marketName":"三林","originalPrice":50,"inventory":5,"isAcceptOrders":1,"merchantId":129,"incr":1,"packageUnit":"斤","storeId":124,"chargeUnit":"箱","priceOnly":50}
     * number : 0
     * responseTime : 2018-04-11 17:03:38
     * size : 20
     */

    private boolean last;
    private String totalElements;
    private ThisProductBean thisProduct;
    private String number;
    private String responseTime;
    private String size;
    private List<ThisProductBean> content;

    public boolean isLast() {
        return last;
    }

    public void setLast(boolean last) {
        this.last = last;
    }

    public String getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(String totalElements) {
        this.totalElements = totalElements;
    }

    public ThisProductBean getThisProduct() {
        return thisProduct;
    }

    public void setThisProduct(ThisProductBean thisProduct) {
        this.thisProduct = thisProduct;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public List<ThisProductBean> getContent() {
        return content;
    }

    public void setContent(List<ThisProductBean> content) {
        this.content = content;
    }

    public static class ThisProductBean {
        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }

        public String getPromotionItemId() {
            return promotionItemId;
        }

        public void setPromotionItemId(String promotionItemId) {
            this.promotionItemId = promotionItemId;
        }

        /**
         * tags : []
         * storeName : 小尤菌菇批发部
         * species : null
         * lastSnapshotId : 41898
         * modifiedTime : 2017-07-16 02:26:16
         * origin :
         * moq : 1
         * pack : 8.6斤/箱
         * type : 1
         * packageContainer : 箱
         * variety : 香菇
         * packageSize : 8.6
         * isDisabled : 0
         * id : 4787
         * title : 香菇
         * level :
         * price : 50.0元/箱
         * thumbnail : http://imgtest.epfresh.com/2017%2F5%2F4%2F741702c276f3405e92b9b5777409b0b2.jpg-PRODUCTTHUMBNAIL
         * marketName : 三林
         * originalPrice : 50
         * inventory : 5
         * isAcceptOrders : 1
         * merchantId : 129
         * incr : 1
         * packageUnit : 斤
         * storeId : 124
         * chargeUnit : 箱
         * priceOnly : 50
         */

        private boolean isOffering;

        public boolean isOffering() {
            return isOffering;
        }

        public void setOffering(boolean offering) {
            isOffering = offering;
        }

        private boolean isChecked;
        private String storeName;
        private Object species;
        private String promotionItemId;
        private String lastSnapshotId;
        private String modifiedTime;
        private String origin;
        private Double moq;
        private String pack;
        private String type;
        private String packageContainer;
        private String variety;
        private double packageSize;
        private String isDisabled;
        private String id;
        private String title;
        private String level;
        private String price;
        private String thumbnail;
        private String marketName;
        private String originalPrice;
        private Double inventory;
        private String isAcceptOrders;
        private String merchantId;
        private Double incr;
        private String packageUnit;
        private String storeId;
        private String chargeUnit;
        private String priceOnly;
        private ArrayList<HomeCommTag> tags;
        private String promotionItemType;
        private Double count;
        private OfferMyList offerProductDto;

        public OfferMyList getOfferProductDto() {
            return offerProductDto;
        }

        public void setOfferProductDto(OfferMyList offerProductDto) {
            this.offerProductDto = offerProductDto;
        }
        public Double getMoq() {
            return moq;
        }

        public Double getIncr() {
            return incr;
        }

        public void setMoq(Double moq) {
            this.moq = moq;
        }

        public void setIncr(Double incr) {
            this.incr = incr;
        }

        public Double getCount() {
            if(count == null)
                return moq;
            return count;
        }

        public void setCount(Double count) {
            this.count = count;
        }

        public String getPromotionItemType() {
            return promotionItemType;
        }

        public void setPromotionItemType(String promotionItemType) {
            this.promotionItemType = promotionItemType;
        }

        public String getStoreName() {
            return storeName;
        }

        public void setStoreName(String storeName) {
            this.storeName = storeName;
        }

        public Object getSpecies() {
            return species;
        }

        public void setSpecies(Object species) {
            this.species = species;
        }

        public String getLastSnapshotId() {
            return lastSnapshotId;
        }

        public void setLastSnapshotId(String lastSnapshotId) {
            this.lastSnapshotId = lastSnapshotId;
        }

        public String getModifiedTime() {
            return modifiedTime;
        }

        public void setModifiedTime(String modifiedTime) {
            this.modifiedTime = modifiedTime;
        }

        public String getOrigin() {
            return origin;
        }

        public void setOrigin(String origin) {
            this.origin = origin;
        }
        public String getPack() {
            return pack;
        }

        public void setPack(String pack) {
            this.pack = pack;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getPackageContainer() {
            return packageContainer;
        }

        public void setPackageContainer(String packageContainer) {
            this.packageContainer = packageContainer;
        }

        public String getVariety() {
            return variety;
        }

        public void setVariety(String variety) {
            this.variety = variety;
        }

        public double getPackageSize() {
            return packageSize;
        }

        public void setPackageSize(double packageSize) {
            this.packageSize = packageSize;
        }

        public String getIsDisabled() {
            return isDisabled;
        }

        public void setIsDisabled(String isDisabled) {
            this.isDisabled = isDisabled;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public String getMarketName() {
            return marketName;
        }

        public void setMarketName(String marketName) {
            this.marketName = marketName;
        }

        public String getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(String originalPrice) {
            this.originalPrice = originalPrice;
        }

        public Double getInventory() {
            return inventory;
        }

        public void setInventory(Double inventory) {
            this.inventory = inventory;
        }

        public String getIsAcceptOrders() {
            return isAcceptOrders;
        }

        public void setIsAcceptOrders(String isAcceptOrders) {
            this.isAcceptOrders = isAcceptOrders;
        }

        public String getMerchantId() {
            return merchantId;
        }

        public void setMerchantId(String merchantId) {
            this.merchantId = merchantId;
        }

        public String getPackageUnit() {
            return packageUnit;
        }

        public void setPackageUnit(String packageUnit) {
            this.packageUnit = packageUnit;
        }

        public String getStoreId() {
            return storeId;
        }

        public void setStoreId(String storeId) {
            this.storeId = storeId;
        }

        public String getChargeUnit() {
            return chargeUnit;
        }

        public void setChargeUnit(String chargeUnit) {
            this.chargeUnit = chargeUnit;
        }

        public String getPriceOnly() {
            return priceOnly;
        }

        public void setPriceOnly(String priceOnly) {
            this.priceOnly = priceOnly;
        }

        public ArrayList<HomeCommTag> getTags() {
            return tags;
        }

        public void setTags(ArrayList<HomeCommTag> tags) {
            this.tags = tags;
        }
    }
}
